SearchContext

interface SearchContext

Base interface for search methods that must be inherited by the DOM interfaces that want to have search mechanisms.

Inheritors

Functions

Link copied to clipboard

Returns the first Element found in the current search context by the given className, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given cssSelector, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given id, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given name, if any.

Link copied to clipboard

Returns the first Element found in the current search context by the given tagName, if any.

Link copied to clipboard
abstract fun findElementByClassName(className: String): Optional<Element>
Returns the first Element object found in the current search context by the given className.
Link copied to clipboard
abstract fun findElementByCssSelector(cssSelector: String): Optional<Element>
Returns the first Element object found in the current search context by the given cssSelector.
Link copied to clipboard
Returns the first Element object found in the current search context by the given id.
Link copied to clipboard
Returns the first Element object found in the current search context by the given name.
Link copied to clipboard
abstract fun findElementByTagName(tagName: String): Optional<Element>
Returns the first Element object found in the current search context by the given tagName.
Link copied to clipboard
abstract fun findElementsByClassName(className: String): List<Element>
Returns an immutable list of the Element objects found in the current search context by the given className.
Link copied to clipboard
abstract fun findElementsByCssSelector(cssSelector: String): List<Element>
Returns an immutable list of the Element objects found in the current search context by the given cssSelector.
Link copied to clipboard
abstract fun findElementsById(id: String): List<Element>
Returns an immutable list of the Element objects found in the current search context by the given id.
Link copied to clipboard
abstract fun findElementsByName(name: String): List<Element>
Returns an immutable list of the Element objects found in the current search context by the given name.
Link copied to clipboard
abstract fun findElementsByTagName(tagName: String): List<Element>
Returns an immutable list of the Element objects found in the current search context by the given tagName.
Link copied to clipboard

Returns the first Element found in the current search context by the given className.

Link copied to clipboard

Returns the first Element found in the current search context by the given cssSelector.

Link copied to clipboard

Returns the first Element found in the current search context by the given id.

Link copied to clipboard

Returns the first Element found in the current search context by the given name.

Link copied to clipboard

Returns the first Element found in the current search context by the given tagName.